package com.mimi.service.impl;

import com.mimi.dataobject.SellerInfo;
import com.mimi.repository.SellerInfoRepository;
import com.mimi.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author:徐向
 * @Description:openid 查询用户信息
 * @Date: Created in 17:06 2017/10/20
 */
@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellerInfoRepository repository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String opentid) {
        return repository.findByOpenid(opentid);
    }
}
